package com.ljm.boot.seataorder;

import com.ljm.boot.seataorder.feign.OrderDetailsFeignClient;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableAutoDataSourceProxy // 开启 Seata 数据源代理
@EnableFeignClients
@MapperScan("com.ljm.boot.seataorder.mapper") // 指定Mapper接口所在包
public class SeataOrderApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SeataOrderApplication.class);
        app.run(args);
        System.out.println("Spring上下文已成功初始化！");
    }

}
